package com.lxj.cms.manage.entity;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.lxj.core.entity.SYSPerson;

@Entity
@Table(name = "tg_member")
public class TgMemberEntity extends SYSPerson {
	// 类型：0：普通会员 1：商家会员
	private int infoType;
	private String infoTypeString;

	public int getInfoType() {
		return infoType;
	}

	public void setInfoType(int infoType) {
		this.infoType = infoType;
	}

	@Transient
	public String getInfoTypeString() {
		switch (infoType) {
		case 0:
			infoTypeString = "普通会员";
			break;
		case 1:
			infoTypeString = "商家会员";
			break;

		default:
			break;
		}
		return infoTypeString;
	}

	public void setInfoTypeString(String infoTypeString) {
		this.infoTypeString = infoTypeString;
	}

}
